package com.bdth.weget.home.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆违章记录
 * </p>
 *
 * @author LGP
 * @since 2019-07-10
 */
@TableName("pt_car_unrule")
public class CarUnrule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 车辆ID
     */
    private Integer carid;
    /**
     * 车牌号
     */
    private String plateno;
    /**
     * 违章类型
     */
    private String ruletype;
    /**
     * 违章人员
     */
    private String ruleower;
    /**
     * 违章日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date crtime;
    /**
     * 是否处理
     */
    private Integer isdelete;

    private String display;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCarid() {
        return carid;
    }

    public void setCarid(Integer carid) {
        this.carid = carid;
    }

    public String getPlateno() {
        return plateno;
    }

    public void setPlateno(String plateno) {
        this.plateno = plateno;
    }

    public String getRuletype() {
        return ruletype;
    }

    public void setRuletype(String ruletype) {
        this.ruletype = ruletype;
    }

    public String getRuleower() {
        return ruleower;
    }

    public void setRuleower(String ruleower) {
        this.ruleower = ruleower;
    }

    public Date getCrtime() {
        return crtime;
    }

    public void setCrtime(Date crtime) {
        this.crtime = crtime;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    @Override
    public String toString() {
        return "CarUnrule{" +
        ", id=" + id +
        ", carid=" + carid +
        ", plateno=" + plateno +
        ", ruletype=" + ruletype +
        ", ruleower=" + ruleower +
        ", crtime=" + crtime +
        ", isdelete=" + isdelete +
        ", display=" + display +
        "}";
    }
}
